package com.kdtech.entity.data;

import com.kdtech.utils.DateUtils;



/**
 * 论坛（贴吧）实体类
 *
 * @author Persh
 *
 */
public class BBSMeta extends AbstractMeta{
	/**
	 * 评论数
	 */
	private Integer commentNum=0;
	/**
	 * 点击数
	 */
	private Integer clickNum=0;



	public Integer getCommentNum() {
		return commentNum;
	}
	public void setCommentNum(Integer commentNum) {
		this.commentNum = commentNum;
	}
	public Integer getClickNum() {
		return clickNum;
	}
	public void setClickNum(Integer clickNum) {
		this.clickNum = clickNum;
	}

	public String toString(){
		StringBuilder sb = new StringBuilder();
		sb.append("url:"+this.getUrl()+"\n");
		sb.append("title:"+this.getTitle()+"\n");
		sb.append("source:"+this.getSource()+"\n");
		sb.append("author:"+this.getAuthor()+"\n");
		sb.append("date:"+(this.getDate()==null?"":DateUtils.format(this.getDate(), "yyyy-MM-dd HH:mm"))+"\n");
		sb.append("content:"+this.getContent()+"\n");
		sb.append("commentNum:"+this.commentNum+"\n");
		sb.append("clickNum:"+this.clickNum+"\n");

		return sb.toString();
	}

}
